package com.wenhui.schoolyardinfo.message.ui;

import android.os.Bundle;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.qmuiteam.qmui.widget.QMUITopBar;
import com.wenhui.schoolyardinfo.R;
import com.wenhui.schoolyardinfo.base.BaseActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * author    : Urasaki
 * e-mail    : 1164688204@qq.com
 * date      : 2019/7/5 10:39
 * introduce : 聊天消息Activity
 */

public class ChatMessageActivity extends BaseActivity {

    @BindView(R.id.imv_back)
    ImageView imvBack;
    @BindView(R.id.layout_back)
    RelativeLayout layoutBack;
    @BindView(R.id.tev_title)
    TextView tevTitle;
    @BindView(R.id.imv_more)
    ImageView imvMore;
    @BindView(R.id.layout_more)
    RelativeLayout layoutMore;
    @BindView(R.id.topbar)
    QMUITopBar topbar;
    @BindView(R.id.mine_recycler_view)
    RecyclerView mineRecyclerView;

//    private List<RecommendBean> recommendBeanList;
//    private RecommendAdapter recommendAdapter;
//    private LinearLayoutManager layoutManager;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_chat_message);
        ButterKnife.bind(this);

        initData();
        initViews();
    }

    @Override
    protected void initData() {
//        recommendBeanList = new ArrayList<>();

    }

    @Override
    protected void initViews() {
        setTopBar(topbar);

//        layoutManager = new LinearLayoutManager(this);
//        layoutManager.setOrientation(OrientationHelper.VERTICAL);
//        mineRecyclerView.setLayoutManager(layoutManager);
//        mineRecyclerView.setItemAnimator(new DefaultItemAnimator());
//
//        recommendAdapter = new RecommendAdapter(this);
//        mineRecyclerView.setAdapter(recommendAdapter);
//        recommendAdapter.setRcvOnItemViewClickListener(this);
//        recommendAdapter.clearData();
//        recommendAdapter.addAllData(recommendBeanList);
    }

    @OnClick({R.id.layout_back, R.id.layout_more})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.layout_back:
                finish();
                break;
            case R.id.layout_more:
                break;
        }
    }
}
